//
//  PublicSigmentScrollView.h
//  Yanwei
//
//  Created by Seven-Augus on 2017/5/10.
//  Copyright © 2017年 DCloud. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PublicSigmentView.h"

@protocol SelectIndexViewControllerDelegate <NSObject>

- (void)didSelectIndexVC:(NSInteger)indexRow;

@end

@interface PublicSigmentScrollView : UIView <UIScrollViewDelegate>

/** 控制器Arry */
@property (nonatomic, strong) NSMutableArray *titleControllerArrys;

/** 标题Arry */
@property (nonatomic, strong) NSMutableArray *titleScrollArrys;

/** 设置选中的item，用于其他页面跳转至改页面是，item、下划线、vc保持一致 */
@property (nonatomic, assign) NSInteger SelectDefaultIndex;

/** 未选中时的文字颜色, 默认颜色DDMColor(80, 80, 80) */
@property (nonatomic, strong) UIColor *TitleColorNormal;

/** 选中时的文字颜色，默认颜色DDMColor(30, 137, 255) */
@property (nonatomic,strong) UIColor *TitleColorSelect;

/** 底线颜色 */
@property (nonatomic, strong) UIColor *BottomLineColor;

/** title底线颜色 */
@property (nonatomic, strong) UIColor *TitleLineColor;

/** 底线高 */
@property (nonatomic, assign) CGFloat BottomLineHeight;

@property (strong, nonatomic) UIFont *TitleSelectFont;
/** 字体大小，默认15 */
@property (nonatomic, strong) UIFont *TitleFont;

@property (nonatomic, weak) id<SelectIndexViewControllerDelegate>delegate;

@end
